package com.endurance.service;

import org.springframework.stereotype.Component;

//通过value属性指定Bean的id,如果未指定默认使用类名的首字母小写.
@Component(value = "mySelfBean")
public class IoCService {

    public void testIoC() {
        System.out.printf("IoC 控制反转！");
    }

}
